//
//  LNNavigationControllerStack.h
//  LNBeeHive
//
//  Created by wwww on 2019/9/30.
//  Copyright © 2019 淘发现1iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol LNNavigationProtocol;

@interface LNNavigationControllerStack : NSObject
/// Returns a new navigation controller stack.
- (instancetype)initWithServices:(id<LNNavigationProtocol>)services;

/// navigationController - the navigation controller
- (void)pushNavigationController:(UINavigationController *)navigationController;

// Returns the popped navigation controller.
- (UINavigationController *)popNavigationController;

/// Retrieves the top navigation controller in the stack.
///
/// Returns the top navigation controller in the stack.
- (UINavigationController *)topNavigationController;
@end

NS_ASSUME_NONNULL_END
